<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.zjf.util.Config"%>
<%@page import="java.io.File"%>
<%@page import="com.zjf.dao.impl.UserDaoImpl"%>
<%@page import="com.zjf.dao.UserDao"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.FileReader"%>
<%@page import="java.io.PrintWriter"%>
<%@page import="java.io.FileWriter"%>
<%@ include file="../config/config.jsp" %>
<%@include file="checkAdmin.jsp" %>
<%!
StringBuilder content =null;
 %>
<%
String path = "/introduce.html";
path = request.getRealPath(path);
File introFile = new File(path);
String cont = request.getParameter("cont");
if(cont!=null){
	PrintWriter pw = new PrintWriter(new FileWriter(introFile));
	pw.write(cont);
	pw.close();	
}
BufferedReader br = new BufferedReader(new FileReader(introFile));
String line;
content = new StringBuilder();
while((line=br.readLine())!=null){
	content.append(line).append("\n");
}
br.close();
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<!-- editor -->
<script src="<%=request.getContextPath() %>/kindeditor/kindeditor-min.js"></script>
<script  src="<%=request.getContextPath() %>/kindeditor/en.js"></script>
		<script>
		
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="cont"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					
				});
			});
			
		</script>
<!-- end of editor -->
  <style>
body {
	font:12px Arial, Helvetica, sans-serif;
	color: #000;
	background-color:#F0F0F0;
	margin: 0px;
	border:solid 1pt #CCCCCC;
	padding:50px 50px 50px 50px;
}
table,td{
 border:1pt #999999 solid;
}
</style>
   
    
    <title></title>
    
  </head>
  <body>
  <font size=2>
  		<form method="post">
  			<textarea name="cont" style="width:800px;height:500px;"><%=content.toString() %></textarea>
  			<input type="submit" value="更新">
  		</form>
  </font>
  </body>
</html>
